package com.hmall.api.config;

import com.hmall.api.clients.fallback.ItemClientFallBack;
import com.hmall.api.interceptor.UserInfoFeignInterceptor;
import feign.Logger;
import org.springframework.context.annotation.Bean;

/**
 * @author Administrator
 * @version 1.0
 * @date 2024/2/26 10:44
 */
public class DefaultFeignLogLevelConfig {
    @Bean
    public Logger.Level feignLogLevel(){
        return Logger.Level.BASIC;
    }

    @Bean
    public UserInfoFeignInterceptor userInfoFeignInterceptor(){
        return new UserInfoFeignInterceptor();
    }

    @Bean
    public ItemClientFallBack itemClientFallBack(){
        return new ItemClientFallBack();
    }
}
